import router from '@/router'
import { useTitle } from '@/hooks/useTitle'
const { setTitle } = useTitle()
router.afterEach(to => {
  setTitle(to.meta.title as string)
})
